package cn.wen.yaling.xo.dao;

import cn.wen.yaling.commons.entity.ResourcesEntity;
import cn.wen.yaling.commons.vo.ResourceVO;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 
 * 
 * @author FY
 * @email 932043654@qq.com
 * @date 2022-08-13 02:07:37
 */
@Mapper
@Component
public interface ResourcesDao extends BaseMapper<ResourcesEntity> {

    /**
     * 获取全部的资源
     * @return
     */
    List<ResourceVO> getAllResources();

    /**
     * 更新资源状态
     * @param resourceIds
     * @param status
     * @return
     */
    boolean updateByIds(@Param("resourceIds") Integer[] resourceIds, @Param("status") int status);

}
